package com.xbongbong.parent.data;

import com.xbongbong.paas.pojo.vo.PaasFormDataEsListVO;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.form.pojo.dto.ChildProductDTO;
import com.xbongbong.pro.form.pojo.dto.EsDataDTO;

/**
 * @author 吴峰
 * @date 2021/12/17 15:52
 */
public interface FormDataEsService {

    /**
     * 获取数据
     * @param esDataDTO
     * @return com.xbongbong.paas.pojo.vo.PaasFormDataEsListVO
     * @author 吴峰
     * @date 2021/12/17 15:55
     * @throws XbbException
     */
    PaasFormDataEsListVO getEsDataList(EsDataDTO esDataDTO) throws XbbException;

    /**
     * 获取原父产品下的子产品，从es获取
     *
     * @param childProductDTO
     * @author chaoxiong.lei
     * @Date 21:29 2019/2/14
     * @since v1.0
     * @return
     * @throws XbbException
     **/
    PaasFormDataEsListVO getChildProductList(ChildProductDTO childProductDTO) throws XbbException;
}
